/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.capex.javaee.sockets;

import java.net.InetAddress;

/**
 *
 * @author Acer
 */
public class LocalWifiNetwork {
    public static void main(String[] args) {
        try{
            InetAddress local = InetAddress.getLocalHost();
            System.out.println("Local Ip Address: "+local.getHostAddress());
            System.out.println("Canonical local Hostname: "+local.getCanonicalHostName());
        }catch(Exception ex){

        }
    }
}
